package sel.me.spring.boot159.web.feign.hystrix;


import org.springframework.stereotype.Component;
import sel.me.spring.boot159.web.domain.Result;
import sel.me.spring.boot159.web.exception.UnifyStrErrorCode;
import sel.me.spring.boot159.web.feign.UserClient;

@Component
public class UserClientHystrix implements UserClient {


	@Override
	public Result<Long> getTotalUserCount() {
		Result result = new Result<>();
		result.setCode(String.valueOf(UnifyStrErrorCode.REMOTE_SERVER_ERROR.getErrorCode()));
		result.setMsg(UnifyStrErrorCode.REMOTE_SERVER_ERROR.getErrorMsg());
		return result;
	}

	
}
